package org.example.oa.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author tangxiao
 * @since 2021-10-11
 */
@TableName("activity_apply")
@ApiModel(value = "ActivityApply对象", description = "")
public class ActivityApply implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @NotBlank
    private String name;

    @Positive
    private Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "ActivityApply{" +
                "id=" + id +
                ", name=" + name +
                ", age=" + age +
                "}";
    }
}
